<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Robots" content="all">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,minimal-ui">

<meta name="screen-orientation" content="portrait">
<!--<meta name="full-screen" content="yes" />
<meta name="browsermode" content="application">

<meta name="x5-fullscreen" content="true">
<meta name="x5-orientation" content="portrait">-->
<!-- <meta name="x5-page-mode" content="app">-->
<!-- 强制让文档的宽度与设备的宽度保持1:1，并且文档最大的宽度比例是1.0，且不允许用户点击屏幕放大浏览-->
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- 告诉设备忽略将页面中的数字识别为电话号码 -->
<meta http-equiv="cleartype" content="on">
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta name="Keywords" content="<?php echo ($seo_keyword); ?>">
<meta name="Description" content="<?php echo ($seo_description); ?>">
<meta name="wap-font-scale" content="no">
<title>金期权</title>
<!--css-->
<link href="/git/www/yxwei/Public/Futures/new/option/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="/git/www/yxwei/Public/Futures/new/option/css/propos.css" rel="stylesheet" type="text/css" />
<link href="/git/www/yxwei/Public/Futures/new/option/css/font.css" rel="stylesheet" type="text/css" />
<!--js-->
<script src="/git/www/yxwei/Public/Futures/new/option/js/jquery-2.2.0.js" type="text/javascript" charset="utf-8"></script>
<script src="/git/www/yxwei/Public/Futures/new/option/js/touch.js" type="text/javascript" charset="utf-8"></script>
<!--<script src="/git/www/yxwei/Public/Futures/new/option/js/jquery.mobile-1.4.5.js" type="text/javascript" charset="utf-8"></script>-->
<script src="/git/www/yxwei/Public/Futures/new/option/js/Bootstrap-v3.3.5.js" type="text/javascript" charset="utf-8"></script>
<script src="/git/www/yxwei/Public/Futures/new/option/js/now.js" type="text/javascript" charset="utf-8"></script>
<script src="/git/www/yxwei/Public/Futures/new/option/js/svg.js" type="text/javascript" charset="utf-8"></script>
<!--旧-->
<link href="/git/www/yxwei/Public/Futures/css/main.css" rel="stylesheet">
<link href="/git/www/yxwei/Public/Futures/css/index.css" rel="stylesheet">
<link href="/git/www/yxwei/Public/Futures/css/personal.css" rel="stylesheet">
<link href="/git/www/yxwei/Public/Futures/css/left.css" rel="stylesheet">
<link href="/git/www/yxwei/Public/Futures/css/Swiper.min.css" rel="stylesheet">
<script type="text/javascript" src="/git/www/yxwei/Public/Futures/js/swiper.min.js"></script>


<?php echo hook('weixinshare',array('title'=>'金期权交易平台~','link'=>"$share_url",'desc'=>'我在金期权交易平台盈利，快来一起参与吧！','imgUrl'=>"$headimgurl",'type'=>'','dataUrl'=>'','success_fun'=>'callback'));?>
<script type="text/javascript">
    function callback(){
        //alert('分享回调');
         /*
         $.post("<?php echo U('Index/share');?>",{},function(data){
             if(data.status==0){
                //alert(data.mes);
             }else{
                //alert('分享成功');
             }
         },'json')
         */
    }
</script>
<!-- 页面header钩子，一般用于加载插件CSS文件和代码 -->

</head>
<body>
	<!-- 头部 -->
	<!---->
	<!-- /头部 -->
	
	<!-- 主体 -->
	
	<div class="proDelBox">
		<div class="proDelInfoBox">
			<div class="proDelInfoImgBox">
				<img class="proDelInfoImg" src="<?php echo ($resInfo['headimgurl']); ?>" />
			</div>
			<div class="proDelInfoConter">
				<p class="proDelInfoP1 defaultAsh"><?php echo ($info["nickname"]); ?></p>
				<p class="proDelInfoP2 defaulticon">账户余额:<span class="defaultred"><?php echo ($info["money"]); ?></span>元</p>
			</div>
		</div>
		
		<div class="proLiBox proDelBorderBottm">
			<p class="proLiConterTel proDelBorderBottm clearfix proLiBoxPadding">
				<span class="left defaultBlack" style="margin-left: 10px;">用户姓名</span>
				<span class="right defaultBlack"><?php echo ($info["nickname"]); ?></span>
			</p>
			<p class="proLiConterTel defaultBlack clearfix proLiBoxPadding">
				<span class="left defaultBlack" style="margin-left: 10px;">性别</span>
				<span class="right defaultBlack"><?php if($info['sex'] == 1): ?>男<?php else: ?>女<?php endif; ?></span>
			</p>
		</div>
		
		<div class="proLiBox proDelBorderBottm">
			<p class="proLiConterTel clearfix proLiBoxPadding proDelBorderBottm">
				<span class="left defaultBlack" style="margin-left: 10px;">手机号码</span>
				<span class="right defaultBlack"><?php echo ($info["mobile"]); ?></span>
			</p>
			<p class="proLiConterTel clearfix proLiBoxPadding" id="QRcode">
				<span class="left defaultBlack" style="margin-left: 10px;">二维码</span>
				<span class="right defaultBlack"><img style="height: 26px;margin-top: -5px;" src="/git/www/yxwei/Public/Futures/images/QRcode.svg" /></span>
			</p>
		</div>
		
		<div class="proLiBox proDelBorderBottm">
			<p class="proLiConterTel proDelBorderBottm clearfix proLiBoxPadding list_reset">
				<span class="left defaultBlack" style="margin-left: 10px;">修改密码</span>
				<span class="icon-uniE902 right defaulticon"></span>
			</p>
			<a href="<?php echo U('User/find_pwd');?>">
			<p class="proLiConterTel clearfix proLiBoxPadding">
				<span class="left defaultBlack" style="margin-left: 10px;">忘记密码</span>
				<span class="icon-uniE902 right defaulticon"></span>
				
			</p>
			</a>
		</div>
	</div>

        <!-- 弹出窗 -->
        <div class="dailog_mask"></div>
        <div class="dailog clearfix">
            <img src="/git/www/yxwei/Public/Futures/images/img_2.png" alt="" class="closeBtn" >
            <h4>修改密码</h4>
            <p class="pwd">
                <input type="text"  class="pwd_text" placeholder="请输入原密码">
                <input name="password" id="password" value="" type="password" class="pwd_pwd">
            </p>
            <p class="pwd">
                <input type="text"  class="pwd_text" placeholder="请输入新密码">
                <input name="repassword" id="repassword" value="" type="password" class="pwd_pwd">
            </p>
            <p class="pwd">
                <input type="text" class="pwd_text" placeholder="请再次输入密码">
                <input name="repasswordtwo" id="repasswordtwo" value="" type="password" class="pwd_pwd">
            </p>
            <div class="info_btn clearfix">
                <input type="button" class="sub_form" value="确定" />
                <input type="button" value="取消" class="closeBtn quexiao" />
            </div>

        </div>
    </div>
<div class="QRcodebox">
	<div class="QRcodemode">
		<div class="QRcodecont">
			<div class="QRcodepoth"><img class="QRcodeimg" src="<?php echo ($resInfo['headimgurl']); ?>" /><span class="QRcodepothname"><?php echo ($info["nickname"]); ?></span></div>
			<div class="QRcodeconter"><img src="http://qr.topscan.com/api.php?text=<?php echo U('Index/index',array('shareuserid'=>$info['id']));?>" /><p>扫描上方二维码，立即加入平台。</p></div>
		</div>
		<div class="QRcodeclose"><img id="QRcodecloese" src="/git/www/yxwei/Public/Futures/images/QRcodeclose.svg"/></div>
	</div>
	
</div>
<script type="text/javascript">
$('#QRcode').click(function(){
	$('.QRcodebox').show();
})
$('#QRcodecloese').click(function(){
	$('.QRcodebox').hide();
})
    $(document).ready(function(){
        /*密码框*/
        $(".pwd").find(".pwd_text").focus(function() {
            var text_value = $(this).val();
            if (text_value == this.defaultValue) {
                var obj=$(this).parent(".pwd")
                $(this).hide();
                obj.find(".pwd_pwd").show().focus();
            }
        });
        $(".pwd_pwd").blur(function() {
            var text_value = $(this).val();
            if (text_value == "") {
                var obj1=$(this).parent(".pwd")
                $(this).hide();
                obj1.find(".pwd_text").show();
            }
        });

        // 弹出窗
        $(".list_reset").click(function(){
            $(".dailog_mask").show();
            $(".dailog").fadeIn(200);
        })
        $(".closeBtn").click(function(){
            $(".dailog_mask").hide();
            $(".dailog").fadeOut(200);
        })
    })
    //密码修改
    $('.sub_form').click(function(){
        var password=$('#password').val();
        var repassword=$("#repassword").val();
        var repasswordtwo=$('#repasswordtwo').val();
        if(password==''){toast('原密码不能为空',2000);return false;};
        if(repassword==''){toast('新密码不能为空',2000);return false;};
        if(repasswordtwo==''){toast('确认新密码不能为空',2000);return false};
        if(repassword!=repasswordtwo){toast('密码不相同',2000);return false}
        var url="<?php echo U('User/reset_password');?>";
        $.post(url,{
            password:password,//表中验证自段
            repassword:repassword,
            repasswordtwo:repasswordtwo,
        },function(date){
            if(date==1){toast('原密码出错',2000)}
            else if(date==2){toast('密码不相同',2000)}
            else if(date==3){toast('修改成功',2000);
                $(".dailog_mask").hide();
                $(".dailog").fadeOut(200);
            }
            else if(date==4){toast('修改失败',2000)}
            else if(date==9){toast('原密码不能为空',2000)}
            else if(date==8){toast('新密码不能为空',2000)}
            else if(date==7){toast('确认新密码不能为空',2000)}
            else{return;}
        })
    })
</script>


	<!-- /主体 -->

	<!-- Left -->
	
	
<!--菜单列表-->
<div class="proLeftBox" id="proLeftBox">
	<div class="proLeftMask"></div>
	<div class="proLeftListBox">
		<a href="<?php echo U('User/user_info');?>">
		<div class="proLeftImgBox padlr5">
				<div class="proLeftImg">
					<img src="<?php echo ($resInfo['headimgurl']); ?>" />
				</div>
				<div class="proLeftInfo">
					<p class="proLeftName defaultBlack"><?php echo ($resInfo['nickname']); ?></p>
					<p class="proLeftDefault defaultAsh">查看个人信息</p>
				</div>
				<div class="proLeftRight">
					<span class="proLeftRightFont icon-uniE902 defaulticon"></span>
				</div>
		</div>
		</a>
		<ul class="proLeftNav">
			<a href="<?php echo U('Index/index');?>">			<li data-val='首页'>	 <span class="proLeftNavFont icon-1 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">首页</p></li></a>
			<a href="<?php echo U('StockOption/index');?>">	<li data-val='恒指期权'><span class="proLeftNavFont icon-1 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">恒指期权</p></li></a>
			<a href="<?php echo U('Pay/personal_incharge');?>"><li data-val='充值'>	 <span class="proLeftNavFont icon-2 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">充值</p></li></a>
			<a href="<?php echo U('User/bank_index');?>">		<li data-val='提现'>	 <span class="proLeftNavFont icon-3 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">提现</p></li></a>
			<a href="<?php echo U('Transaction/index');?>">	<li data-val='交易历史'><span class="proLeftNavFont icon-4 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">交易历史</p></li></a>
			<a href="<?php echo U('Order/order_list');?>">		<li data-val='订单列表'><span class="proLeftNavFont icon-5 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">订单列表</p></li></a>
			<a href="<?php echo U('Payments/payments');?>">	<li data-val='收支明细'><span class="proLeftNavFont icon-6 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">收支明细</p></li></a>
			<?php if($is_agent == 1): ?><a href="<?php echo U('Commission/index');?>">		<li data-val='分销中心'><span class="proLeftNavFont icon-7 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">分销中心</p></li></a><?php endif; ?>
			<?php if($is_agent == 0): ?><a href="<?php echo U('Apply/index');?>">			<li data-val='分销中心'><span class="proLeftNavFont icon-7 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">分销中心</p></li></a><?php endif; ?>
		</ul>
	</div>
</div>
<!--菜单进入-->
<div class="dropMenu" id="target">
	<!-- <img src='/git/www/yxwei/Public/Futures/new/option/images/mune.svg'/ > -->
</div>
<!--没注册提示框-->
<div class="left-tips">
	<p class="left-tipsp1">注册</p>
	<p class="left-tipsp2">您还没有注册,请先注册!</p>
	<div class="left-tipsdiv">
		<a class="left-tipsa1" href="#">取消</a>
		<a class="left-tipsa2" href="<?php echo U('user/register');?>">确定</a>
	</div>
</div>
<!-- 共用提示 -->
<div class="proTipsBox" style="display:none" id="all_tips">
	<div class="proTipsMaxk"></div>
	<div class="proTipsconter">
		<div class="proTipsP">
			<h4>系统提示</h4>
			<p id="all_pdword">密码错误，请重新输入密码</p>
		</div>
		<hr>
		<p>确认</p>
	</div>
</div>


<script type="text/javascript">
//swipe example

touch.on(document, "DOMContentLoaded", function(){
	//点击

	touch.on('#target', 'tap', function(e){
		e.preventDefault();
		$('.proLeftBox').animate({left:"0px"},500);
		$('.proLeftListBox').animate({left:"0px"},500);
	});
	//移动
	touch.on('#target', 'touchstart', function(ev){
		ev.preventDefault();
	});
	var target = document.getElementById("target");
	var dx, dy;
	touch.on('#target', 'drag', function(ev){
		var selfx,selfy,self=this;
		selfx=ev.x;
		selfy=ev.y;
		dx = dx || 0;
		dy = dy || 0;
		var offx = dx + ev.x + "px";
		var offy = dy + ev.y + "px";
		this.style.webkitTransform = "translate3d(" + offx + "," + offy + ",0)";
	});
	touch.on('#target', 'dragend', function(ev){3
		dx += ev.x;
		dy += ev.y;
		var moverx=Math.abs(ev.x),movery=Math.abs(ev.y);
		if(moverx<50&&movery<50){
			$('.proLeftBox').animate({left:"0px"},500);
			$('.proLeftListBox').animate({left:"0px"},500);
		}
//		console.log(moverx)
	});
	touch.on('#proLeftBox', 'swipeleft', function(ev){
		ev.preventDefault();
		$('.proLeftBox').animate({left:"-100%"},500);
		$('.proLeftListBox').animate({left:"-80%"},500);
		tap=1;
	});
});
//
// $('#target').click(function(){
// 		$('.proLeftBox').animate({left:"0px"},500);
// 		$('.proLeftListBox').animate({left:"0px"},500);
// })
//遮罩点击事件
$('.proLeftMask').click(function(e){
	e.stopPropagation;
	$('.proLeftBox').animate({left:"-100%"},500);
	$('.proLeftListBox').animate({left:"-80%"},500);
	tap=1;
})
/**
 * [input_pwd 交易密码登录]
 * @return {[type]} [description]
 */
function pwd_login(){
	//获取输入的交易
	var pwd = $('#futures_pwd').val();
	if(pwd==''){
		$(".nologin_pwd").html('请输入交易密码！');
		return;
	}
	var url="<?php echo U('User/pwd_login');?>";
    $.post(url,{pwd:pwd},function(data){
        if(data.status){
        	$(".nologin_pwd").html('成功！');
           	window.location.href="<?php echo U('Index/index');?>";
        }else{
            $(".nologin_pwd").html(data.info);
        }
    },'json')
}
</script>


	
	<!-- /Left -->

	<!-- 底部 -->
	<!---->
	<!-- /底部 -->
</body>
</html>